Skip to content

Class: ComponentCache<TKey, TValue> ​

  • Namespace: Global
  • Assembly: Dew.Core.dll
csharp
public class ComponentCache<TKey, TValue> where TKey : Object where TValue : class

Methods ​

Clear() ​

csharp
public void Clear()

GetOrAdd(TKey, Func&lt;TValue&gt;) ​

csharp
public TValue GetOrAdd(TKey key, Func<TValue> valueFactory)

Parameters:

NameTypeDescription
keyTKey
valueFactorySystem.Func&lt;TResult&gt;&lt;TValue&gt;

Returns: TValue

Maintained by the Shape of Dreams Modding Community